package com.lottery.game.core.model.request.register;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="VerifyCaptchaCodeRequest", description="发送手机短信验证码请求")
public class VerifyCodeRequest implements Serializable {

	private static final long serialVersionUID = 4140121014648836264L;

	@ApiModelProperty(value="手机号",  required = true)
	@NotEmpty(message = "手机号码不能为空")
	@Pattern(regexp="^((13[0-9])|(17[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$", message="手机号格式不正确")
	private String phone;

	@ApiModelProperty(value="短信验证码", required = true)
	@NotEmpty(message = "短信验证码不能为空")
	private String code;

	@ApiModelProperty(value="短信验证码验证TOKEN", required = true)
	@NotEmpty(message = "短信验证码验证TOKEN不能为空")
	private String token;

}
